package me.tonywang.filter;

/**
 * <p>
 *
 * @author wanghui
 * @since 2018/2/7 15:43
 */
public class Filter {

    int i = 0 ;

    public Filter(int i) {
        this.i = i;
    }

    public void doFilter (FilterChain chain ){

        try {
            System.out.println("Filter doFilter " + i);
            chain.doFilter();
        }finally {
            System.out.println("finally do  " + i);
        }

    }
}
